package com.songbl.bless.app.controller;


import com.songbl.bless.app.dao.ReqBean;
import com.songbl.bless.app.entity.ZJYBean;
import com.songbl.bless.app.service.impl.ZJYServiceImpl;
import com.songbl.bless.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/well")
public class ZJYController {

    @Autowired
    ZJYServiceImpl zjyService;


    @PostMapping("queryOneDataZTY")
    public R queryUserAndListById(@RequestBody ReqBean reqBean){
        System.out.println("钻井液 "+reqBean.toString());
        ZJYBean zjyBean = zjyService.secletOneData(reqBean.getId());
        Map<String, Object> map = new HashMap<>();

        map.put("result",zjyBean);
        return R.ok(map);
    }

}
